package com.ibbi.admin.client.front.category;

import com.ibbi.admin.client.resource.IBBIResources;
import com.ibbi.admin.client.rpc.obj.Category;

import corelib.client.ui.widget.tree.SimpleTreeNode;

public class CategoryTreeNode extends SimpleTreeNode {
	
	private Category catalog;
	
	public CategoryTreeNode(Category info){
		super(info.getName(), IBBIResources.INSTANCE.cube16());
		this.catalog = info;
	}

	@Override
	public boolean isLeaf() {
		return this.catalog.isLeaf();
	}

	public Category getCategory() {
		return this.catalog;
	}
	
}